const state = {
	currentProject: "",
	currentIntf: {},
	password: "",
	// 是否进行加锁、解锁操作
	whetherLock: new Date().getTime()
}

const getters = {};
const actions = {}
const mutations = {
	changeProject (state, projectName) {
		state.currentProject = projectName
	},
	changeIntf (state, intfObj) {
		state.currentIntf = intfObj
	},
	changePwd (state, pwd) {
		state.password = pwd;
	},
	changeWhetherLock (state, whetherLock) {
		state.whetherLock = whetherLock
	}
}

export default {
	namespaced: true,
	state,
	getters,
	actions,
	mutations
}
